package com.zmn.plat.admin.dialect.number;

import org.thymeleaf.dialect.AbstractDialect;
import org.thymeleaf.dialect.IExpressionObjectDialect;
import org.thymeleaf.expression.IExpressionObjectFactory;

/**
 * 自定义数值thymeleaf工具对象
 * @uthor nowind
 * @since 2018/10/13 08:58
 */
public class NumberDialect extends AbstractDialect implements IExpressionObjectDialect {

    private final IExpressionObjectFactory EXPRESSION_OBJECTS_FACTORY = new NumberExpressionFactory();

    public NumberDialect() {
        super(NumberExpressionFactory.NUMBER_UTIL_EXPRESSION_OBJECT_NAME);
    }

    @Override
    public IExpressionObjectFactory getExpressionObjectFactory() {
        return this.EXPRESSION_OBJECTS_FACTORY;
    }
}
